package dnl.util.ui.mdi;

import java.util.HashSet;
import java.util.Set;

public class TilingStrategy {

	private Set<TilingStrategyConstants> constants = new HashSet<TilingStrategyConstants>();
	private int preferredNumberOfColumns;

	public TilingStrategy(int preferredNumberOfColumns) {
		super();
		this.preferredNumberOfColumns = preferredNumberOfColumns;
	}
	
	public TilingStrategy() {
	}
	

	public void addTilingConstant(TilingStrategyConstants constant) {
		constants.add(constant);
	}
	
	public boolean hasConstant(TilingStrategyConstants constant){
		return constants.contains(constant);
	}

	public int getPreferredNumberOfColumns() {
		return preferredNumberOfColumns;
	}
	
}
